package com.hmall.feign.client.filter;

import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@Component
public class FeignConfig {

    @Bean
    public RequestInterceptor requestInterceptor() {
        return new FeignHeaderInterceptor();
    }
}